package com.server.transaction.example;


import com.server.transaction.service.CheckHandle;

/**
 * @title: CheckResultHandle
 * @author: gyuan
 * @description
 * @date: 2023-11-17 15:55
 */
public class CheckResultHandle implements CheckHandle {
    @Override
    public boolean check(Object obj) {
        if(obj instanceof String) {
            String res = (String) obj;
            return res.equals("success") ? true : false;
        }
        return false;
    }
}
